<template>
	<view class="detail">
		<view class="order-status" v-if="typeData == 'group'">
			<view class="status-o">
				<image class="img-status_group" src="../../static/my-icon/group.png" mode=""></image>
				<view class="text-status">拼团中/拼团失败/拼团成功</view>
			</view>
			<view class="status-o">
				<image class="img-status_peo" src="../../static/my-icon/group-people.png" mode=""></image>
				<view class="text-status">还差10人拼团成功</view>
			</view>
			<view class="status-o_">
				<view class="o_">
					<image class="img-status__" src="../../static/my-icon/address-icon.png" mode=""></image>
					<view class="text-status">王先生：13569899632</view>
				</view>
				<view class="text-address">北京市朝阳区3665号</view>
			</view>
		</view>
		<view class="order-status" v-if="typeData == 'result'">
			<view class="status-o">
				<image class="img-status_1" src="../../static/my-icon/sale_1.png" mode=""></image>
				<view class="text-status">审核中/已通过/未通过</view>
			</view>
			<view class="status-o_">
				<view class="o_">
					<image class="img-status" src="../../static/my-icon/sale_2.png" mode=""></image>
					<view class="text-status">售后原因</view>
				</view>
				<view class="text-address">卖家无货</view>
			</view>
		</view>
		<view class="order-status" v-if="typeData == 'default'">
			<view class="status-o">
				<image class="img-status" src="../../static/my-icon/pay-status.png" mode=""></image>
				<view class="text-status">待支付</view>
			</view>
			<view class="status-o">
				<image class="img-status_" src="../../static/my-icon/order-id.png" mode=""></image>
				<view class="text-status">快递单号：97252369633</view>
			</view>
			<view class="status-o_">
				<view class="o_">
					<image class="img-status__" src="../../static/my-icon/address-icon.png" mode=""></image>
					<view class="text-status">王先生：13569899632</view>
				</view>
				<view class="text-address">北京市朝阳区3665号</view>
			</view>
		</view>

		<view class="order-de">
			<view class="de-item">
				<view class="de-title">订单编号</view>
				<view class="de-id">835696695548</view>
			</view>
			<view class="de-item ma">
				<view class="de-title">下单时间</view>
				<view class="de-id">2022-06-27 10:17:18</view>
			</view>
			<view class="de-item">
				<view class="de-title">支付方式</view>
				<view class="de-id">微信支付</view>
			</view>
		</view>
		<view class="goods-de">
			<view class="go-de-title">商品列表</view>
			<view class="go-de-list">
				<view class="go-de-item">
					<view class="item-ls" v-for="(orderls, i) in orderDetail" :key="i">
						<image class="ls-img" :src="orderls.img" mode="aspectFill"></image>
						<view class="ls-msg">
							<view class="left-msg">
								<view class="ls-title">{{ orderls.name }}</view>
								<view class="ls-size">{{ orderls.size }}</view>
								<view class="ls-price">￥{{ orderls.price }}</view>
							</view>
							<view class="right-num">X{{ orderls.num }}</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="price-de">
			<view class="pr-de-item">
				<view class="pr-de-left">商品金额</view>
				<view class="pr-de-right">￥99.90</view>
			</view>
			<view class="pr-de-item">
				<view class="pr-de-left">优惠金额</view>
				<view class="pr-de-right">￥0</view>
			</view>
			<view class="pr-de-item">
				<view class="pr-de-left">运费</view>
				<view class="pr-de-right">￥0</view>
			</view>
			<view class="pr-de-item">
				<view class="pr-de-left">实付金额</view>
				<view class="pr-de-right">￥99.90</view>
			</view>
		</view>
	</view>
</template>

<script>
	import sortData from '../../common/sortData.js'
	export default {
		data() {
			return {
				orderDetail: sortData.orderDetail,
				typeData: '',
				currentPageTitle: ''
			};
		},
		onLoad(e) {
			this.typeData = this.$Route.query.from;
			if (this.typeData == 'group') {
				uni.setNavigationBarTitle({
					title: '团购详情'
				})
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.ma {
		margin: 40rpx 0;
	}

	.detail {
		padding-bottom: 100rpx;
		padding-top: 20rpx;

		.order-status {
			width: 100%;
			background-color: #ffffff;
			padding: 0 45rpx 40rpx 40rpx;
			box-sizing: border-box;
			margin-bottom: 20rpx;

			.status-o_ {
				display: flex;
				flex-direction: column;
				padding: 50rpx 0 0 0;
				box-sizing: border-box;

				.o_ {
					display: flex;
					align-items: center;
				}



				.text-address {
					font-size: 26rpx;
					line-height: 60rpx;
					letter-spacing: 3rpx;
					color: #989898;
					margin-left: 60rpx;
				}
			}

			.text-status {
				font-size: 30rpx;
				letter-spacing: 3rpx;
				color: #333333;
			}

			.status-o {
				display: flex;
				align-items: center;
				padding: 50rpx 0 19rpx;
				border-bottom: 1px solid #e5e5e5;
			}
		}

		.img-status_group {
			width: 33rpx;
			height: 33rpx;
			margin-right: 27rpx;
		}

		.img-status_peo {
			width: 31rpx;
			height: 38rpx;
			margin-right: 27rpx;
		}

		.img-status__ {
			width: 27rpx;
			height: 30rpx;
			margin-right: 35rpx;
		}

		.img-status_1 {
			width: 32rpx;
			height: 34rpx;
			margin-right: 27rpx;
		}

		.img-status {
			width: 32rpx;
			height: 32rpx;
			margin-right: 27rpx;
		}

		.img-status_ {
			width: 36rpx;
			height: 27rpx;
			margin-right: 27rpx;
		}

		.order-de {
			width: 100%;
			background-color: #ffffff;
			padding: 40rpx 0 50rpx 35rpx;

			.de-item {
				display: flex;
				align-items: center;
				box-sizing: border-box;

				.de-title {
					font-size: 28rpx;
					letter-spacing: 3rpx;
					color: #333333;
					margin-right: 60rpx;
				}

				.de-id {
					font-size: 26rpx;
					letter-spacing: 3rpx;
					color: #989898;
				}
			}
		}

		.goods-de {
			margin-top: 20rpx;
			margin-bottom: 20rpx;
			background-color: #ffffff;
			width: 100%;
			padding: 30rpx 18rpx 0 36rpx;
			box-sizing: border-box;

			.go-de-title {
				font-size: 28rpx;
				letter-spacing: 3rpx;
				color: #333333;
				padding-left: 17rpx;
			}

			.go-de-list {
				margin-top: 23rpx;

				.go-de-item {
					.item-ls {
						padding: 28rpx 37rpx 28rpx 16rpx;
						display: flex;
						border-top: 1px solid #e5e5e5;

						.ls-img {
							width: 146rpx;
							height: 146rpx;
							border-radius: 5rpx;
							margin-right: 34rpx;
						}

						.ls-msg {
							display: flex;
							justify-content: space-between;
							width: 480rpx;

							.ls-title {
								font-size: 28rpx;
								letter-spacing: 3rpx;
								color: #545454;
								margin-top: 5rpx;
								overflow: hidden;
								white-space: nowrap;
								text-overflow: ellipsis;
								width: 380rpx;
							}

							.ls-size {
								font-size: 22rpx;
								letter-spacing: 2rpx;
								color: #989898;
								margin: 10rpx 0 20rpx 0;
							}

							.ls-price {
								font-size: 28rpx;
								letter-spacing: 3rpx;
								color: #d81e06;
							}
						}

						.right-num {
							margin-top: 90rpx;
							font-size: 30rpx;
							letter-spacing: 3rpx;
							color: #363636;
						}
					}
				}
			}
		}

		.price-de {
			width: 100%;
			background-color: #ffffff;
			padding: 45rpx 50rpx 10rpx 35rpx;
			box-sizing: border-box;

			.pr-de-item {
				display: flex;
				align-items: center;
				justify-content: space-between;

				.pr-de-left {
					margin-bottom: 40rpx;
					font-size: 28rpx;
					letter-spacing: 3rpx;
					color: #333333;
				}

				.pr-de-right {
					font-size: 26rpx;
					letter-spacing: 3rpx;
					color: #e72e0d;
				}
			}
		}
	}
</style>
